package com.osgix.common.pojo.temp;

import java.io.Serializable;

/**
 * 用户组成员对象
 * Aug 12, 2008,4:12:29 PM
 *
 * @author zh
 * 
 * @version 2.0
 */
public class GroupUser implements Serializable {

	private static final long serialVersionUID = 3943572783711749023L;

	/**
	 * 组织机构ID
	 */
	private String dept_id = "";//
	/**
	 * 账号
	 */
	private String userAccount = "";//
	/**
	 * 类型 0:管理员/1:组成员	
	 */
	private int type = 1;//

	/**
	 * 无参构造函数
	 * 2008-8-27,上午11:04:58
	 * @author zqmao
	 * @version 2.0
	 *
	 */
	public GroupUser() {

	}

	/**
	 * 构造函数
	 * 2008-8-27,上午11:04:12
	 * @author zqmao
	 * @version 2.0
	 *
	 * @param pDept_id 组织机构ID
	 * @param pAccount 组成员账号
	 * @param pType 组成员类型
	 */
	public GroupUser(String pDept_id, String pAccount, int pType) {
		this.dept_id = pDept_id;
		this.userAccount = pAccount;
		this.type = pType;
	}

	public String getDept_id() {
		return dept_id;
	}

	public void setDept_id(String dept_id) {
		this.dept_id = dept_id;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getUserAccount() {
		return userAccount;
	}

	public void setUserAccount(String userAccount) {
		this.userAccount = userAccount;
	}

	/**
	 * 重写克隆方法
	 * 2008-8-27,上午11:05:53
	 * @author zqmao 
	 * @version 2.0
	 *
	 * @see java.lang.Object#clone()
	 */
	public Object clone() {
		GroupUser clone = new GroupUser();
		clone.setDept_id(dept_id);
		clone.setUserAccount(userAccount);
		clone.setType(type);
		return clone;
	}

	/**
	 * 重写toString方法
	 * 2008-8-27,上午11:06:53
	 * @author zqmao 
	 * @version 2.0
	 *
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return "dept_id=" + dept_id + "/ account=" + userAccount + "/ type=" + type;
	}
}
